home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 1998 #13 / Skiva nr 13-1998 (Svart).iso / nksdemo.exe / skepp.dxr / 00144.ls < prev    next >
Encoding:
Text File  |  1998-10-02  |  1.5 KB  |  63 lines

  1. on hit7
  2.   global tid, skotTid, skottILuften, shipHit, hv, sink, skeppTyp
  3.   set av to 50
  4.   if skotTid = (100 - av) then
  5.     set skotTid to 100
  6.     set the memberNum of sprite 7 to 121
  7.     set the locV of sprite 7 to 120
  8.     updateStage()
  9.     if sprite 7 intersects sprite(8) then
  10.       if getAt(hv, 2) = 1 then
  11.         set sink to 0
  12.       else
  13.         set sink to 82
  14.       end if
  15.       setAt(shipHit, 2, 1)
  16.       set skotTid to 111
  17.     end if
  18.   end if
  19.   if skotTid = 104 then
  20.     puppetSound(3, 225)
  21.     set the memberNum of sprite 7 to 122
  22.   end if
  23.   if skotTid = 108 then
  24.     set the memberNum of sprite 7 to 123
  25.   end if
  26.   if skotTid = 110 then
  27.     set the locV of sprite 7 to 1000
  28.     set skottILuften to 0
  29.     set skotTid to 0
  30.   end if
  31.   if skotTid = 111 then
  32.     puppetSound(3, 227)
  33.     set the locV of sprite 7 to 1000
  34.     set the memberNum of sprite 8 to 83 + sink
  35.     updateStage()
  36.   end if
  37.   if skotTid = 126 then
  38.     set the memberNum of sprite 8 to 84 + sink
  39.     updateStage()
  40.   end if
  41.   if skotTid = 141 then
  42.     set the memberNum of sprite 8 to 85 + sink
  43.     updateStage()
  44.   end if
  45.   if skotTid = 156 then
  46.     set the memberNum of sprite 8 to 86 + sink
  47.     updateStage()
  48.   end if
  49.   if skotTid = 171 then
  50.     set the memberNum of sprite 8 to 87 + sink
  51.     updateStage()
  52.   end if
  53.   if skotTid = 186 then
  54.     set the locH of sprite 8 to 1000
  55.     setAt(shipHit, 2, 0)
  56.     set skottILuften to 0
  57.     set skotTid to 0
  58.     set skeppTyp to 2
  59.     pointCounter()
  60.     updateStage()
  61.   end if
  62. end
  63.